import request from '@/utils/request'

// 查询采购订单列表
export function listOrd(query) {
  return request({
    url: '/system/ord/list',
    method: 'get',
    params: query
  })
}

// 查询采购订单详细
export function getOrd(id) {
  return request({
    url: '/system/ord/' + id,
    method: 'get'
  })
}

// 新增采购订单
export function addOrd(data) {
  return request({
    url: '/system/ord',
    method: 'post',
    data: data
  })
}

// 修改采购订单
export function updateOrd(data) {
  return request({
    url: '/system/ord',
    method: 'put',
    data: data
  })
}

// 删除采购订单
export function delOrd(id) {
  return request({
    url: '/system/ord/' + id,
    method: 'delete'
  })
}
